package virtorina.client.room.dto;

import java.io.Serializable;
import java.util.LinkedList;

public class ComplaintDTO implements Serializable, Comparable<ComplaintDTO> {
	public ComplaintDTO(){
		
	}
	private static final long serialVersionUID = 1L;
	private String Question;
	private LinkedList<String> Answers;
	private LinkedList<String> Labels;
	private LinkedList<ComplInfo> complaints;
	public ComplaintDTO(String question, LinkedList<String> answers,
			LinkedList<String> labels) {
		super();
		Question = question;
		Answers = answers;
		Labels = labels;
		complaints = new LinkedList<ComplInfo>();
	}
	public void addComplaint(Long ID, int type, int number){
		complaints.add(new ComplInfo(ID, type, number));
	}
	public String getQuestion() {
		return Question;
	}
	public LinkedList<ComplInfo> getComplaints() {
		return complaints;
	}
	public void setComplaints(LinkedList<ComplInfo> complaints) {
		this.complaints = complaints;
	}
	public void setQuestion(String question) {
		Question = question;
	}
	public LinkedList<String> getAnswers() {
		return Answers;
	}
	public void setAnswers(LinkedList<String> answers) {
		Answers = answers;
	}
	public LinkedList<String> getLabels() {
		return Labels;
	}
	public void setLabels(LinkedList<String> labels) {
		Labels = labels;
	}
	@Override
	public int compareTo(ComplaintDTO o) {
		return this.getQuestion().compareTo(o.getQuestion());
	}
}
